#!/bin/bash
user="root"
password="123456"
host="192.168.174.9"
port=5550

mysql_conn="mysql -h"$host" -u"$user" -P"${port}"  -p"$password""

cat /root/sh/result | while read day count
do
  $mysql_conn -e "INSERT INTO test.fys VALUES('$day','$count')"
done